//
//  BMSPopupManager.h
//  WDBMS
//
//  Created by YeJary on 2025/5/12.
//

// BMSPopupQueueManager.h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^BMSPopupDismissHandler)(void);

@interface BMSPopupQueueManager : NSObject

+ (instancetype)sharedManager;

- (void)presentPopup:(UIView *)popupView;
- (void)presentPopup:(UIView *)popupView withName:(nullable NSString *)popupName;

- (void)dismissCurrentPopup;
- (void)dismissCurrentPopupImmediately;

// ✅ 补上这句
- (void)dismissCurrentPopupWithCompletion:(void (^)(void))completion;

@end
